package org.feign.demo.dao;

import org.feign.demo.service.HelloServiceHystrix;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * \* Created with IntelliJ IDEA.
 * \* User: jack
 * \* Date: 2019/1/24
 * \* Time: 15:22
 * \* Description:
 * \
 */
@FeignClient(value = "eureka-client",fallback = HelloServiceHystrix.class)
public interface HelloService {

    @GetMapping("/hello/{requestName}")
    String sayHello(@PathVariable("requestName") String requestName);
}
